Previous Book Contents Book Index Next

Inside Macintosh: Programming With MRJToolkit /
Chapter 2 - MRJToolkit Reference / The MRJFileUtils Class
Methods /


getFileCreator

Gets the creator of an existing Mac OS file.

public static final MRJOSType getFileCreator (
                     File file) 
                     throws IOException;
file
The file whose creator you want to obtain.
method result
The 4-byte creator of the file.
DISCUSSION
On the Mac OS, a creator is a 4-byte character constant that the Finder uses to identify the application that should open the document file. If the desired file cannot be found, this method throws IOException.

SEE ALSO
The setFileTypeAndCreator method (page 37).

The setFileCreator method (page 39).

The "Finder Interface" chapter in Inside Macintosh: Macintosh Toolbox Essentials for information about creators.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 NOV 1997